package com.base.common.persistent.dao;

import com.cjy.common.annotation.MyBatisRepository;
import org.apache.ibatis.annotations.Param;

@MyBatisRepository
public interface EmployeeCompoundsMapper {

	/**
	 * 根据员工小区中间表主键id查询小区id
	 * 
	 * @param employeeCompoundsId
	 * @return
	 */
	int queryCompoundsIdById(@Param(value = "id") int employeeCompoundsId);
	
	/**
	 * 根据员工id和小区id查询员工小区中间表主键id
	 * 
	 * @param employeeId
	 * @param compoundsId
	 * @return
	 */
	int queryEmployeeCompoundsIdByEmployeeIdAndCompoundsId(
			@Param(value = "employeeId") int employeeId,
			@Param(value = "compoundsId") int compoundsId);
}
